package com.example.wechat.service.impl;

import com.example.wechat.dao.EventMapper;
import com.example.wechat.pojo.Event;
import com.example.wechat.service.EventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: wechat
 * @description:
 * @author: zhiyu yang
 * @create: 2020-03-06 12:43
 */
@Service
public class EventServiceImpl implements EventService {

    @Autowired
    EventMapper eventMapper;

    @Override
    public List<Event> selAllEvent(Integer pageNo,Integer pageSize) {
        return eventMapper.selAllEvent(pageNo,pageSize);
    }

    @Override
    public int insEvent(Event event) {
        return eventMapper.insEvent(event);
    }

    @Override
    public int selAllEventCount(Integer pageNo,Integer pageSize) {
        return eventMapper.selAllEventCount(pageNo,pageSize);
    }
}
